<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>index</title>
    <style>
        * {
            font-size: 28px;
        }
    </style>
</head>

<body>
    <button type="button" id="btnAdd">添加</button>
    <!-- <a href="./other.html" target="_blank">打开新页面</a> -->
    <a href="./other.html" target="_blank" rel="opener">打开新页面</a>
    <script>
        btnAdd.onclick = function () {
            console.time(`key-1`)
            sessionStorage.setItem('key-1', "值-1")
            console.timeEnd(`key-1`)
        }
    </script>
</body>

</html>